import json
import time
import os

import requests

def modify_data(boe_no):
    req = requests.get(
        url="https://fssc.luhua.cn/fssc-cms-web/cms/test/workFlowAgreeApproveCallBack?boeNo=" + boe_no,
        headers=None,
        params=None
    )
    # 打印响应的JSON（方便调试）
    print(boe_no ,json.dumps(req.json(), ensure_ascii=False))  # 增加indent美化输出，ensure_ascii=False显示中文

file_path = "D:\\temp\\error_data.txt"  #. 表示当前目录
print("file_path:",  file_path)

with open(file_path, "r" , encoding='utf-8') as file:
    while True:
        line = file.readline()
        if not line:
            break
        #time.sleep(1)
        modify_data(line.strip())






